package com.ziyucoding.springboot.labs.redislike.service;

import com.ziyucoding.springboot.labs.redislike.common.CommonResponse;

/**
 * 点赞服务 接口
 *
 * @author ziyucoding
 * @date 2023-02-07
 **/
public interface LikeService {

    /**
     * 点赞数据保存到缓存
     *
     * @param infoId
     * @param userId
     * @return CommonResponse<Object>
     */
    CommonResponse<Object> likeInfo(String infoId, String userId);

    /**
     * 取消点赞数据保存到缓存
     *
     * @param infoId
     * @param userId
     * @return CommonResponse<Object>
     */
    CommonResponse<Object> dislikeInfo(String infoId, String userId);

}
